home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2005 March
/
CMCD0305.ISO
/
Software
/
Shareware
/
Utilitare
/
emu
/
Emu8086_Setup_307c.exe
/
{app}
/
Samples
/
traffic_lights.asm
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
UTF-8
Wrap
Assembly Source File
|
2002-08-02
|
400 b
|
22 lines
#MAKE_BIN#
#CS = 500#
#IP = 0#
; This is a sample of OUT instruction.
; It writes values to virtual I/O port
; of Traffic Lights Intersection, by
; setting bits we can turn off/on
; the lights. Your task will be to
; to improve it, and make it work just
; like real Traffic Lights System :)
MOV AX, 1
next_situation:
OUT 4, AX
ROL AX, 1 ; rotate bit.
JMP next_situation